<?php if ($this->pageCount): ?> 
<nav>
    <ul class="pagination">
        <!-- Previous page link --> 
        <?php if (isset($this->previous)): ?> 
        <li>
            <a href="<?php echo $this->url(array('page' => $this->previous,'title'=>$this->title,'asign_user'=>$this->taskid,'statu'=>$this->statu,'starttime'=>$this->starttime,'endtime'=>$this->endtime)); ?>" aria-label="Previous">
                <span aria-hidden="true">&laquo;</span>
            </a> 
        </li>
        <?php else: ?>
        <li class="disabled">
            <a aria-label="Previous">
                <span aria-hidden="true">&laquo;</span>
            </a> 
        </li>
        <?php endif; ?> 
        
        <!-- Numbered page links -->
        <?php foreach ($this->pagesInRange as $page): ?>
            <?php if ($page != $this->current): ?> 
            <li><a href="<?php echo $this->url(array('page' => $page,'title'=>$this->title,'asign_user'=>$this->taskid,'statu'=>$this->statu,'starttime'=>$this->starttime,'endtime'=>$this->endtime)); ?>"><?php echo $page; ?></a></li>
            <?php else: ?> 
            <li class="active"><a><?php echo $page; ?></a></li>
            <?php endif; ?> 
        <?php endforeach; ?> 
        
        <!-- Next page link -->
        <?php if (isset($this->next)): ?> 
        <li>
            <a href="<?php echo $this->url(array('page' => $this->next,'title'=>$this->title,'asign_user'=>$this->taskid,'statu'=>$this->statu,'starttime'=>$this->starttime,'endtime'=>$this->endtime)); ?>" aria-label="Next">
                <span aria-hidden="true">&raquo;</span>
            </a>
        </li>
        <?php else: ?> 
        <li class="disabled">
            <a aria-label="Next">
                <span aria-hidden="true">&raquo;</span>
            </a>
        </li>
        <?php endif; ?>
    </ul>
</nav>
<?php endif; ?>
